TrafficSign Class Reference

#include <TrafficSign.h>

Inheritance diagram for TrafficSign:

TraffEduObject List of all members.

Public Member Functions

 TrafficSign (TrafficSignTypes newSignType)
 TrafficSign ()
 ~TrafficSign ()
void draw (osg::ref_ptr< osg::Group > root, int animationFlag=-1)
TrafficSignTypes getTrafficSignType ()

Private Attributes

TrafficSignTypes signType
int triangleType

Detailed Description

TrafficSign class. A data fundemental class for Traffic Signs.

Definition at line 6 of file TrafficSign.h.


Constructor & Destructor Documentation

TrafficSign::TrafficSign (  TrafficSignTypes  newSignType  ) 
 

Constructor for the TrafficSign

Parameters:
newSignType 

Definition at line 50 of file TrafficSign.cpp.

References DIKKAT, DUR, ILERI_MECBURI_YON, ILERI_SAGA_MECBURI_YON, ILERI_SOLA_MECBURI_YON, ISIKLI_ISARET_CIHAZI, TraffEduObject::modelPath, TraffEduObject::objectGroup, ONDEKI_TASITI_GECMEK_YASAKTIR, SAGA_DONULMEZ, SAGA_MECBURI_YON, SAGA_TEHLIKELI_DEVAMLI_VIRAJ, SAGA_TEHLIKELI_VIRAJ, SAGDAN_ANAYOL_TALIYOL_KAVSAGI, TraffEduObject::setObjectId(), TraffEduObject::setObjectType(), SIGN, signType, SOLA_DONULMEZ, SOLA_MECBURI_YON, SOLA_TEHLIKELI_DEVAMLI_VIRAJ, SOLA_TEHLIKELI_VIRAJ, SOLDAN_ANAYOL_TALIYOL_KAVSAGI, triangleType, U_DONUSU_YAPILMAZ, and YOL_VER.

TrafficSign::TrafficSign (   ) 
 

Constructor for the Trafic Sign.

Definition at line 34 of file TrafficSign.cpp.

References DIKKAT, TraffEduObject::modelPath, TraffEduObject::objectGroup, TraffEduObject::setObjectId(), TraffEduObject::setObjectType(), SIGN, signType, and triangleType.

TrafficSign::~TrafficSign (   ) 
 

Destructor for the Trafic Sign.

Definition at line 187 of file TrafficSign.cpp.


Member Function Documentation

void TrafficSign::draw (  osg::ref_ptr< osg::Group >  root,
int  animationFlag = -1
)  [virtual]
 

Draw function to add the sign to sceen root.

Parameters:
root where to add the Traffic Sign to.
animationFlag whether the object is an active object during animation.

Implements TraffEduObject.

Definition at line 205 of file TrafficSign.cpp.

References TraffEduObject::addTree(), TrafficModel::circularTrafficSign(), TraffEduObject::isBeforeCreated, TraffEduObject::modelPath, TraffEduObject::objectGroup, triangleType, TrafficModel::triangularTrafficSign(), and TraffEduObject::viewMode.

TrafficSignTypes TrafficSign::getTrafficSignType (   )  [inline]
 

Getter for the type of the Traffic Sign.

Returns:
type of the Traffic Sign.

Definition at line 39 of file TrafficSign.h.

References signType.


Member Data Documentation

TrafficSignTypes TrafficSign::signType [private]
 

Definition at line 8 of file TrafficSign.h.

Referenced by getTrafficSignType(), and TrafficSign().

int TrafficSign::triangleType [private]
 

Definition at line 9 of file TrafficSign.h.

Referenced by draw(), and TrafficSign().


The documentation for this class was generated from the following files:
Generated on Sun May 28 18:54:15 2006 for TraffEdu by  doxygen 1.4.6-NO